const url = '/employee/index'
// 转码
const str = encodeURIComponent(url)
console.log(str)
// 反转码
const newUrl = decodeURIComponent(str)
console.log(newUrl)
